package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.CartypeParameterContentMapper;
import com.whq.entity.CartypeParameterContent;
import com.whq.service.CartypeParameterContentService;

@Service(value = "tdCartypeParameterContentService")
public class CartypeParameterContentServiceImpl implements CartypeParameterContentService {

    @Autowired
    private CartypeParameterContentMapper<CartypeParameterContent>tdCartypeParameterContentMapper;
    
    @Override
    public Integer insertSelective(CartypeParameterContent tdCartypeParameterContent) throws Exception {
           return this.tdCartypeParameterContentMapper.insertSelective(tdCartypeParameterContent);
        }

    @Override
    public Integer insertBatch(List<CartypeParameterContent> tdCartypeParameterContent) throws Exception {
           return this.tdCartypeParameterContentMapper.insertBatch(tdCartypeParameterContent) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdCartypeParameterContentMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdCartypeParameterContentMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(CartypeParameterContent tdCartypeParameterContent) {
           return this.tdCartypeParameterContentMapper.updateByPrimaryKeySelective(tdCartypeParameterContent);
    }

    @Override
    public CartypeParameterContent findById(Object id) {
           return (CartypeParameterContent) this.tdCartypeParameterContentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<CartypeParameterContent> selectByCondition(CartypeParameterContent tdCartypeParameterContent) {
           return (List<CartypeParameterContent>) this.tdCartypeParameterContentMapper.selectByCondition(tdCartypeParameterContent);
    }

    @Override
    public Integer selectCountByCondition(CartypeParameterContent tdCartypeParameterContent) {
           return  this.tdCartypeParameterContentMapper.selectCountByCondition(tdCartypeParameterContent);
    }

}
